package ctd.util.store;

import ctd.util.store.support.ZooKeeperActiveStore;

public class StoreFactory {
    public static ActiveStore createStore(String address){
        return new ZooKeeperActiveStore(address);
    }

    /**
     * 扩展zk的权限控制功能
     * @param address zk连接地址
     * @param authUser zk权限用户名
     * @param authPassword zk权限密码
     * @return
     */
    public static ActiveStore createStore(String address,String authUser,String authPassword){
        return new ZooKeeperActiveStore(address,authUser,authPassword);
    }
}
